package com.tbit.uqbike.webmanager.dao.log;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.tbit.config.datasource.DataSource;
import com.tbit.uqbike.object.pojo.OrderLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@DS(DataSource.LOG)
public interface OrderLogDao {

    int insert(OrderLog record);

    List<OrderLog> selectOrderLogByParam(Map<String, Object> map);

    int selectOrderLogCntByParam(Map<String, Object> map);

    // 更新指令应答
    int updateOrderRspInfo(Map<String, Object> map);

    /**
     * 批量新增指令日志
     * @param orderLogs
     */
    void batchAdd(@Param("orderLogs") List<OrderLog> orderLogs);
}